@import "shared";

// ----------------------------------------------------------------------------
// @private css3-feature-support variables must always include a list of five boolean values
// representing in order: -moz, -webkit, -o, -ms, -khtml
$filter-support: -moz, -webkit, not -o, not -ms, not -khtml;

// ----------------------------------------------------------------------------
// Mixins

// Provides cross-browser support for the upcoming (?) css3 filter property.
//
// The filter argument should adhere to the standard css3 syntax
// for the filter property.
@mixin filter($filters) {
  @include experimental(filter, $filters, $filter-support...);
}

// @private Apply filter-margins
@mixin apply-filter-margin($position, $width) {
  @include experimental(filter-margin-#{$position}, $width, $filter-support...);
}

// filter-margin-top
@mixin filter-margin-top($width) { @include apply-filter-margin(top, $width); }

// filter-margin-right
@mixin filter-margin-right($width) { @include apply-filter-margin(right, $width); }

// filter-margin-bottom
@mixin filter-margin-bottom($width) { @include apply-filter-margin(bottom, $width); }

// filter-margin-left
@mixin filter-margin-left($width) { @include apply-filter-margin(left, $width); }

// filter-margin
@mixin filter-margin($widths) {
  @include experimental(filter-margin, $widths, $filter-support...);
}

// color-interpolation-filters (auto | sRGB | linearRGB )
@mixin color-interpolation-filters($value) {
  @include experimental(color-interpolation-filters, $value, $filter-support...);
}